package concurrent.reentrantLock;import java.util.concurrent.locks.ReentrantReadWriteLock;/** * @Author: Beating Pupils * @Date: 2021/1/30 15:10 * @Description: 读写锁例子 */public class ReentrantReadWriteLockDemo {    public static void main(String[] args) {        ReentrantReadWriteLock lock = new ReentrantReadWriteLock();        lock.writeLock().lock();        lock.writeLock().unlock();        ThreadLocal threadLocalMap = new ThreadLocal();        lock.readLock().lock();        lock.readLock().unlock();        int c=1;        System.out.println(1+(1 << 16));    }}